package com.free.freemarker.core;

import java.sql.Connection;
import java.sql.SQLException;

import com.free.mysql.model.Table;
/**
 * 
 * @author liuhuan
 */
public interface SqlBuilder {

	/**
	 * 创建 连接
	 * @return
	 * @throws Exception
	 */
	public Connection createConnection() throws Exception;
	/**
	 * 获取表元数据
	 * 
	 * @param tableName
	 * @param con
	 * @return
	 * @throws SQLException
	 */
	public Table getMetaData(String tableName, Connection con)throws SQLException;
}
